package ZY10_25.Car;

public class Car {
    private String colour;
    private final String plate;//车牌

    public Car(String colour, String plate) {
        this.colour = colour;
        this.plate = plate;
    }
    public void show(){
        System.out.println("颜色："+colour+" 车牌："+plate);
        qidong();
        jiasu();
        sheche();
    }
    public void qidong(){
        System.out.println("汽车进行启动");
    }
    public void jiasu(){
        System.out.println("汽车进行加速");
    }
    public void sheche(){
        System.out.println("汽车进行刹车");
    }
    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public String getPlate() {
        return plate;
    }
}
